{extend name="../../admin/view/main"}

{block name="button"}
<!--{if auth("list_remove")}-->
<button data-action='{:url("list_remove")}' data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>删除信息</button>
<!--{/if}-->
{/block}

{block name="content"}
<div class="think-box-shadow">
    {if $formId}<button data-open='{:url("index")}' data-title="返回表单类型" class='layui-btn layui-btn-sm layui-btn-normal margin-bottom-20'>表单类型</button>{/if}
    {include file='/form/form/info_search'}
    <table class="layui-table margin-top-10" lay-skin="line">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
            </th>
            <th class="text-left nowrap">会员信息</th>
            <th class='text-left nowrap'>提交信息</th>
            <th class='text-left nowrap'>提交时间</th>
            <th class='text-left nowrap'>提交IP地址</th>
            <th class='text-left nowrap'>状态设置操作</th>
            <th></th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr {if isset($vo.status) and $vo.status eq 0}style="background: #fbf816;"{/if}>
        <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.lid}' type='checkbox'></td>
        <td class="text-left nowrap relative">
            {notempty name='vo.headimg'}
            <img data-tips-image style="width:80px;height:80px" src="{$vo.headimg|default=''}" class="margin-right-5 text-top">
            {/notempty}
            <div class="inline-block">
                会员信息：{$vo.nickname|default='未登陆会员'} [ {$vo.nickname|default='--'} ]<br>
                会员手机：{$vo.phone|default='--'}<br>
            </div>
        </td>
        <td class='text-left nowrap'>
            <a data-title="查看提交信息" class="layui-btn  layui-btn-sm layui-btn-normal" data-modal='{:url("info")}?id={$vo.lid}'>查看</a>
        </td>
        <td class='text-left nowrap'>
            {$vo.add_time|default='--'}
        </td>
        <td class='text-left nowrap'>
            {$vo.member_IP|default='--'}
        </td>
        <td class="text-left nowrap">
            {if isset($vo.status) and $vo.status eq 1}
            <!--{if auth("list_forbid")}-->
            <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('list_forbid')}" data-value="id#{$vo.lid};status#0">已确认</a>
            <!--{else}-->
            <a data-tips-text="您没有设置参数的权限哦！" class="layui-btn layui-btn-sm layui-disabled">已确认</a>
            <!--{/if}-->

            {else}
            <!--{if auth("list_resume")}-->
            <a class="layui-btn layui-btn-sm" data-action="{:url('list_resume')}" data-value="id#{$vo.lid};status#1">审核中</a>
            <!--{else}-->
            <a data-tips-text="您没有设置参数的权限哦！" class="layui-btn layui-btn-sm layui-btn-primary layui-disabled">审核中</a>
            <!--{/if}-->
            {/if}
        </td>


        <td class='text-left nowrap'>
            <div class="nowrap margin-bottom-5">
                {if auth("list_remove")}
                <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定删除吗?" data-action="{:url('list_remove')}" data-value="id#{$vo.lid}">删除</a>
                {else}
                <a data-tips-text="您没有删除数据的权限哦！" class="layui-btn layui-btn-sm layui-btn-primary layui-disabled">删除</a>
                {/if}
            </div>
        </td>
        </tr>
        {/foreach}
        </tbody>
    </table>

    {empty name='list'}<span class="notdata">No record</span>{else}{$pagehtml|raw|default=''}{/empty}

</div>
{/block}
